<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<script src="lib/vue.js"></script>
	</head>
	<body>
		<div id="app">
			<input type="button" value="动画" @click="flag=!flag" />
			<h3 v-if="flag">这是一个动画</h3>
		</div>

		<script>
			var vm = new Vue({
				el: '#app',
				data: {
					flag:false
				},
				methods: {
				}
			})
		</script>
	</body>
</html>
